import request from '@/utils/request'

// 查询科研项目列表
export function listResearchProjects(query) {
  return request({
    url: '/ResearchProjects/ResearchProjects/list',
    method: 'get',
    params: query
  })
}

// 查询科研项目详细
export function getResearchProjects(projectId) {
  return request({
    url: '/ResearchProjects/ResearchProjects/' + projectId,
    method: 'get'
  })
}

// 新增科研项目
export function addResearchProjects(data) {
  return request({
    url: '/ResearchProjects/ResearchProjects',
    method: 'post',
    data: data
  })
}

// 修改科研项目
export function updateResearchProjects(data) {
  return request({
    url: '/ResearchProjects/ResearchProjects',
    method: 'put',
    data: data
  })
}

// 删除科研项目
export function delResearchProjects(projectId) {
  return request({
    url: '/ResearchProjects/ResearchProjects/' + projectId,
    method: 'delete'
  })
}

//查询专家评审导师信息
// 查询科研项目详细
export function listResearchProjectByExpert() {
  return request({
    url: '/ResearchProjects/ResearchProjects/byExpert',
    method: 'get'
  })
}